require.config({
    baseUrl: './',
    paths: {
    	vue: 'lib/vue',
        config: 'js/helper/config',
        comm: 'js/helper/comm',
    }
});

define(['vue', 'config', 'comm'], function(vue, _c, comm) {

'use strict';

    var USER_IDE = comm.getCache(_c.CACHE_USER_IDE);

    var vm = new vue({
        el: '#vm-main',
        data: {
            init: {
                show: false
            },
            user: {
                id: comm.getCache('userId'),
                is_staff: USER_IDE === _c.USER_IDE_STAFF, // 员工
                is_friend: USER_IDE === _c.USER_IDE_FRIEND, // 亲友
                is_guest: USER_IDE === _c.USER_IDE_GUEST, // 嘉宾
                is_visitor: USER_IDE === _c.USER_IDE_VISITOR // 访客
            },
            last_day: comm.getUrlParam('day') || 0
        }
    });

    var app = {
        init: function() {
            vm.init.show = true;
        }
    };

    app.init();

});